﻿namespace Sai.Core.Rules
{
	using Sai.Core.Introspection;

	public class CheckTypesAdded : IAssemblyRule
	{
        public void Validate(IntrospectedAssembly first, IntrospectedAssembly second, IAssemblyDifference assemblyDifference)
		{
			var addedTypes = second.TypeDifferencesFrom(first);

			foreach (var addedType in addedTypes)
			{
				assemblyDifference.Added(addedType);
			}
		}
	}
}
